Skip to content

Dockerfile set up#37

Merged
Ke-vin-S merged 6 commits into
mainfrom
feature/dockerize
May 10, 2025
Merged

Dockerfile set up#37
Ke-vin-S merged 6 commits into
mainfrom
feature/dockerize

Conversation

@Ke-vin-S

Copy link
Copy Markdown
Contributor

No description provided.

@Ke-vin-S Ke-vin-S marked this pull request as ready for review May 10, 2025 04:58
Copilot AI review requested due to automatic review settings May 10, 2025 04:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates Kafka configuration and container orchestration while establishing a Docker-based development environment.

  • Refactors Kafka broker configuration to use an environment variable (KAFKA_BROKER_URL) instead of hardcoding "localhost:9092"
  • Updates integration tests, order simulator, and settings to align with dynamic Kafka configuration
  • Introduces a Dockerfile, an entrypoint script, and updates the GitHub workflows to better accommodate the new Docker and Kafka settings

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
shipments/tests/test_integration_kafka.py Uses settings.KAFKA_BROKER_URL for Producer configuration
order_simulator.py Refactors event attributes and uses environment fallback for Kafka
logistics_core/settings.py Reads KAFKA_BROKER_URL from environment variables
entrypoint.sh Adds migration and run commands for Docker container startup
docker-compose.yml Updates Kafka listener and adds service dependencies
Dockerfile Creates a container build for the Django application
.github/workflows/tests.yml Revises dependency installation and waits for Kafka readiness
.env.example Provides sample environment variable settings for local development

Comment thread .github/workflows/tests.yml Outdated
Ke-vin-S and others added 4 commits May 10, 2025 10:32
@Ke-vin-S Ke-vin-S merged commit adf015c into main May 10, 2025
4 checks passed
@Ke-vin-S Ke-vin-S deleted the feature/dockerize branch May 10, 2025 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants